home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Ghost 1.0 / source / Ghost ƒ / MSG Shell ƒ / msg menus.h < prev    next >
Encoding:
Text File  |  1994-10-30  |  2.0 KB  |  89 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        msg menus.h
  4.  
  5. Purpose:    This is the header file for msg menus.c
  6.  
  7.  
  8. Ghost -=- a classic word-building challenge
  9. Copyright (C) 1993 Mark Pilgrim
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. enum
  29. {
  30.     helpMenu=200,
  31.     computerMenu,
  32.     intelligenceMenu,
  33.     speedMenu,
  34.     dictionaryMenu,
  35.     
  36.     appleMenu = 400,
  37.     fileMenu,
  38.     editMenu,
  39.     optionsMenu,
  40.     
  41.     aboutItem = 1,
  42.     aboutMSGItem,
  43.     
  44.     newItem = 1,
  45.     openItem,
  46.     closeItem,
  47.     saveItem,
  48.     saveAsItem,
  49.     quitItem=7,
  50.     
  51.     undoItem = 1,
  52.     cutItem = 3,
  53.     copyItem,
  54.     pasteItem,
  55.     clearItem,
  56.     
  57.     saveOptions = 1,
  58.     computerPtr = 3,
  59.     intelligencePtr,
  60.     dictionaryPtr,
  61.     speedPtr,
  62.     showMessage = 8,
  63.     soundToggle,
  64.     challengeWord = 11
  65. };
  66.  
  67. extern    Boolean            gMenuEnabled;
  68. extern    MenuHandle        gAppleMenu;
  69. extern    MenuHandle        gFileMenu;
  70. extern    MenuHandle        gEditMenu;
  71. extern    MenuHandle        gOptionsMenu;
  72. extern    MenuHandle        gHelpMenu;
  73. extern    MenuHandle        gComputerMenu;
  74. extern    MenuHandle        gIntelligenceMenu;
  75. extern    MenuHandle        gSpeedMenu;
  76. extern    MenuHandle        gDictionaryMenu;
  77.  
  78. void AdjustMenus(void);
  79. void HandleMenu(long);
  80. void HandleAppleMenu(int);
  81. void HandleFileMenu(int);
  82. void HandleEditMenu(int);
  83. void HandleOptionsMenu(int);
  84. void HandleHelpMenu(int);
  85. void HandleComputerMenu(int);
  86. void HandleIntelligenceMenu(int);
  87. void HandleSpeedMenu(int);
  88. void HandleDictionaryMenu(int);
  89.